//
//  YYLMineTableViewController.swift
//  XinlangWeibo
//
//  Created by yangyinglei on 2017/3/26.
//  Copyright © 2017年 yangyinglei. All rights reserved.
//

import UIKit

class YYLMineTableViewController: YYLVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !isLogin {
            visitorView?.updateVisitorInfo(imgName: "visitordiscover_image_profile", txt: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
            
        } else {
            setupNav()
        }

    }
    
    func setupNav() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    func pushAction() {
        let vc = YYLTestViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}
